package ua.od.maxz;

import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;

/**
 * User: ua.od.maxz
 * Date: Jun 22, 2010
 * Time: 1:49:30 PM
 */
public class TC {
    public static void main(String[] args) {

        String os = System.getProperty("os.name");
        Killer k;
        System.out.print("OS: ");
        if (os.contains("Windows")) {
            System.out.println("Windows");
            k = new KillerW();
        } else {
            System.out.println("Unix");
            k = new KillerU();
        }
        Set<String> arguments = new HashSet<String>();
        arguments.addAll(Arrays.asList(args));
        k.setOptions(arguments);
        k.run();
    }

}
